import {defineStore} from "pinia";

let useInfoStore = defineStore('info', {
    state: () => {
        return {
            count: 99
        }
    },
    actions:{
        add(){
            this.count++
        },
    },
    getters:{
        doubleCount: (state) => {
            return state.count * 2
        }
    }
})

export default useInfoStore;
